package io.renren.modules.alarm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 报警列表实体类
 */
@Data
public class AlarmListEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键
    private Integer id;
    //报警编号，报警策略id
    private Integer tacticsId;
    //报警等级
    private String tacticsLevel;
    //报警内容
    private String tacticsDetails;
    //空间id
    private Integer spaceId;
    //报警设备id
    private Integer deviceId;
    //传感器id
    private Integer sensorId;
    //报警值
    private String alarmValue;
    //报警状态
    private String tacticsState;
    //推送时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;
    //报警时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date tacticsTime;

    //空间名称
    private String spaceName;
    //设备名称
    private String deviceName;
    //传感器名称
    private String sensorName;

}
